package com.lds.config.center.sample.properties;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class SampleController {

    @Autowired
    private SampleProperties sampleProperties;

    @RequestMapping("/search")
    public String search() {
        return sampleProperties.getName();
    }
}
